<style>
#bankeAdmin .info{
	float:left;
	font-size:10px;
	color:#aaa;
	margin:40px 0px 0px 5px;
}
#bankeAdmin input[type=button]{
	background-color:transparent;
	border:none;
	padding:0px;
	width:16px;
	height:16px;
	cursor:pointer;
}
#bankeAdmin table tr{
	cursor:pointer;
}
#bankeAdmin table tr:hover{
	background:{{$highlight}};
	color:{{$highlighttext}};
}
#bankeAdmin table tr:hover input[type=button]{
	background-color:#fff;
}
</style>
<div id="bankeAdmin">
	<h1>Administracija banaka</h1>
	<form class="area" action="javascript:void(0);" onsubmit="submitForm(this,'banke.php','POST','setContent',1)">
		<label class="left" for="filter_code">šifra:</label><input type="text" name="filter_code" id="filter_code" value="{{$filter_code}}" style="width:30px;" />
		<label class="left" for="filter_name">naziv:</label><input type="text" name="filter_name" id="filter_name" value="{{$filter_name}}" />
		<input type="submit" value="filter" id="filterBankeSubmit" />
	</form>
	<div class="info">{{$info}}</div>
	<br clear="all">
	<div class="area" style="margin-top:2px;">
		{{$comment_start}}
		<table>
			<tr class="head">
				<td>id</td>
				<td>šifra</td>
				<td>naziv</td>
				<td>adresa</td>
				<td>žiro račun</td>
				<td><input type="button" class="novi" onClick="LoadRSDoc('banke.php?a=new','ypAjaxForm')" /></td>
			</tr>
			{{%loop start bank_id}}
			<tr onClick="LoadRSDoc('banke.php?a=edit&id={{$bank_id}}','ypAjaxForm')">
				<td>{{$bank_id}}</td>
				<td>{{$bank_code}}</td>
				<td>{{$bank_name}}</td>
				<td>{{$bank_address}}</td>
				<td>{{$bank_acc}}</td>
				<td>
					<input type="button" class="delete" onClick="if(confirm('Potvrdite brisanje banke #{{$bank_id}}.')){LoadRSDoc('banke.php?a=delete&id={{$bank_id}}','afterSaveBank')} event.stopPropagation();" />
				</td>
			</tr>
			{{%loop end}}
		</table>
		{{$comment_end}}
	</div>
</div>